<%-- 
    Document   : insert_updateUser
    Created on : Sep 18, 2013, 10:05:05 PM
    Author     : Tan Le Anh
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<jsp:include page="header.jsp"/>
<div id="wrapper-page">
  <div class="function-wrap">
    <c:set var="dt" value="${requestScope.DETAILS}"/>
    <c:if test="${not empty dt}">  
      <h2>Cập nhật thông tin khách hàng</h2>
      <a href="C_Customer?btAction=SearchCus&txtSearch=" style="display:block;width:50px;" ><div class="btnbackMenu"></div></a>

      <div class="listProduct">
        <h3>Thông tin chi tiết</h3>
        <div style="margin: 0 auto;margin-bottom: 20px;">
          <form action="C_Customer" method="POST">
            <table class="tables">
              <tbody>                  
                <tr>
                  <td>Tài khoản:</td>
                  <td>
                    <div class="input-control text">
                      <input class="inputIn" name="txtTaikhoan" type="text" value="${dt.taikhoan}"/>
                    </div>
                  </td>
                  <td>Mật khẩu:</td>
                  <td>
                    <div class="input-control password">
                      <input class="inputIn" name="txtMatkhau" type="password" value="${dt.matkhau}"/>
                    </div>
                  </td>
                </tr>
                <tr>
                  <td>Tên người dùng:</td>
                  <td>
                    <div class="input-control text">
                      <input class="inputIn" name="txtTennguoidung" type="text" value="${dt.tennguoidung}"/>
                    </div>
                  </td>
                  <td>Giới tính:</td>
                  <td>
                    <label class="input-control radio">
                      <input checked="checked" name="txtGioitinh" type="radio" value="Nam" <c:if test="${dt.gioitinh=='Nam'}">checked="checked"</c:if>>
                        <span class="helper">Nam</span>
                      </label>
                      <label class="input-control radio">
                        <input name="txtGioitinh" type="radio" value="Nữ" <c:if test="${dt.gioitinh=='Nu'}">checked="checked"</c:if>>
                        <span class="helper">Nữ</span>
                      </label>
                    </td>
                  </tr>
                <td>Ngày sinh:</td>
                <td>
                  <div class="input-control text datepicker" data-role="datepicker" data-param-init-date="${dt.ngaysinh}" >
                  <input class="inputIn" name="txtNgaysinh" type="text" value="${dt.ngaysinh}"/>
                </div>
              </td>
              <td>Địa chỉ:</td>
              <td>
                <div class="input-control text">
                  <input class="inputIn" name="txtDiachi" type="text" value="${dt.diachi}"/>
                </div>
              </td>
              <tr>
                <td>Email:</td>
                <td>
                  <div class="input-control text">
                    <input class="inputIn" name="txtEmail" type="email" value="${dt.email}"/>
                  </div>
                </td>
                <td>Điện thoại:</td>
                <td>
                  <div class="input-control text">
                    <input class="inputIn" name="txtDienthoai" type="text" value="${dt.dienthoai}"/>
                  </div>
                </td>
              </tr>               
              <tr>
                <td>Số ATM:</td>
                <td>
                  <div class="input-control text">
                    <input class="inputIn" name="txtSoatm" type="text" value="${dt.soatm}"/>
                  </div>
                </td>
                <td></td>
                <td>
                </td>
              </tr> 
              <tr>
                <td>
                </td>
                <td>
                  <input type="hidden" name="txtLoai" value="5"/>
                  <input type="hidden" name="txtType" value="isCus"/>
                  <input type="hidden" name="btAction" value="Update"/>
                  <input type="submit" name="submit" value="Sửa"/> 
                </td>
              </tr>
              </tbody>
            </table>
          </form> 
        </div>
      </div>  
    </c:if>
    <c:set var="dt" value="${requestScope.INSERT}"/>
    <c:if test="${not empty dt}">  
      <h2>Thêm người khách hàng</h2>
      <a href="C_Customer?btAction=SearchCus&txtSearch=" style="display:block;width:50px;" ><div class="btnbackMenu"></div></a>

      <div class="listProduct">
        <h3>Thông tin chi tiết</h3>
        <div style="margin: 0 auto;margin-bottom: 20px;">
          <form action="C_Customer" method="POST">
            <table style="width: 950px; border: 1px solid #dedede;margin: 0 auto;" class="tables">
              <tbody>                  
                <tr>
                  <td>Tài khoản:</td>
                  <td>
                    <div class="input-control text">
                      <input class="inputIn" name="txtTaikhoan" type="text" />
                    </div>
                  </td>
                  <td>Mật khẩu:</td>
                  <td>
                    <div class="input-control password">
                      <input class="inputIn" name="txtMatkhau" type="password"/>
                    </div>
                  </td>
                </tr>
                <tr>
                  <td>Tên người dùng:</td>
                  <td>
                    <div class="input-control text">
                      <input class="inputIn" name="txtTennguoidung" type="text" />
                    </div>
                  </td>
                  <td>Giới tính:</td>
                  <td>
                    <label class="input-control radio">
                      <input checked="checked" name="txtGioitinh" type="radio" value="Nam">
                      <span class="helper">Nam</span>
                    </label>
                    <label class="input-control radio">
                      <input name="txtGioitinh" type="radio" value="Nữ">
                      <span class="helper">Nữ</span>
                    </label>
                  </td>
                </tr>
              <td>Ngày sinh:</td>
              <td>
                <div class="input-control text datepicker" data-role="datepicker" >
                  <input class="inputIn" type="text" name="txtNgaysinh" />
                </div>
              </td>
              <td>Địa chỉ:</td>
              <td>
                <div class="input-control text">
                  <input class="inputIn" name="txtDiachi" type="text" />
                </div>
              </td>
              <tr>
                <td>Email:</td>
                <td>
                  <div class="input-control text">
                    <input class="inputIn" name="txtEmail" type="email"/>
                  </div>
                </td>
                <td>Điện thoại:</td>
                <td>
                  <div class="input-control text">
                    <input class="inputIn" type="text" name="txtDienthoai" />
                  </div>  
                </td>
              </tr>               
              <tr>
                <td>Số ATM:</td>
                <td>
                  <div class="input-control text">
                    <input class="inputIn" name="txtSoatm" type="text" />
                  </div>
                </td>
                <td></td>
                <td>
                </td>
              </tr> 
              <tr>
                <td>
                </td>
                <td>
                  <input type="hidden" name="txtLoai" value="5"/>
                  <input type="hidden" name="txtType" value="isCus"/>
                  <input type="hidden" name="btAction" value="Insert"/> 
                  <input type="submit" name="submit" value="Thêm"/> 
                </td>
              </tr>
              </tbody>
            </table>
          </form> 
        </div>
      </div>  
    </c:if>
  </div>      
</div>       

<script type="text/javascript" src="skin/js/moment.js"></script>
<script type="text/javascript" src="skin/js/moment_langs.js"></script>
<script type="text/javascript" src="skin/js/calendar.js"></script>

<script>
  $(function() {
  });
</script>
</body>
</html>
